@echo off
::
:: USER-SUPPLIED VARIABLES
set wowDir=C:\Games\WoW-1.12.1
set accountName=GUILDEBANK
set serverName=127.0.0.1
set ftpUser=guildebank
set ftpPass=yeoldeguilde
::
::
set timeStamp=%date:~10,4%%date:~7,2%%date:~4,2%


:: Locations of the three files need to perform an update
set bankItems=%wowDir%\WTF\Account\%accountName%\SavedVariables\BankItems.lua
set characterProfiler=%wowDir%\WTF\Account\%accountName%\SavedVariables\CharacterProfiler.lua
set mailTo=%wowDir%\WTF\Account\%accountName%\SavedVariables\MailTo.lua

:: ftp upload
echo user %ftpUser%> ftpcmd.dat
echo %ftpPass%>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo put %bankItems% BankItems-%timeStamp%.lua>> ftpcmd.dat
echo put %characterProfiler% CharProfile-%timeStamp%.lua>> ftpcmd.dat
echo put %mailTo% MailTo-%timeStamp%.lua>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat %serverName%
del ftpcmd.dat
pause